package demo.day07

// Kotlin 主构造函数里定义属性
fun main() {
    val ktBase03 = KtBase03("Ki",'n',28,"努力学习，天天上网")
    ktBase03.show()

    println("<====================>")
    ktBase03.name = "QiQi"
    ktBase03.sex = 'm'
    ktBase03.age = 30
    ktBase03.info = "QiQi"

    ktBase03.show()


}


class KtBase03(var name: String, var sex: Char, var age: Int, var info: String) {
    fun show(){
        println(name)
        println(sex)
        println(age)
        println(info)
    }
}